<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>

<head>
<title>Veiling Dashboard</title><a style="padding-left: 657px;" href=" <s:url action = "Menu" namespace = "/manager"><s:param name="user"><s:property value="user" /></s:param></s:url> ">Menu</a>
</head>

<body>
	<h4>Veiling Overzicht</h4> 
	<hr /> 
	Aantal veilingen: <s:property value="aantalVeilingen" /><br />
	Aantal open veilingen: <s:property value="aantalOpenVeilingen" /> <br />
	<br /><h4>Overzicht per categorie</h4>
	<hr />
	<table style="float: left;">
		    <tr class="thcolor">
			    <th>Categorie</th>
			    <th>Aantal veilingen</th>			    
		    </tr>
	<s:iterator value="categorien">
		<tr>
			<td><s:property value="naam"/></td>
			<td><s:property value="getAantalVeilingen()"/></td>
		</tr>
	</s:iterator>
	</table>
	<div style="clear: left;"></div><br /><h4>Overzicht per veiling</h4>
	<hr />
	<table style="float: left;">
		    <tr class="thcolor">
			    <th>Veiling</th>
			    <th>Aantal biedingen</th>
			    <th>Hoogste bieding</th>
			    <th></th>
		    </tr>
	<s:iterator value="veilingen">
		<tr>
			<td><s:property value="naam"/></td>
			<td><s:property value="getAantalBiedingen()" /></td>
			<td><s:property value="getHoogsteBieding()" /></td>
			<td><a href="<s:url action="showBiedingen" namespace="/manager"><s:param name="veilingId"><s:property value="veilingId" /></s:param></s:url>">Toon biedingen</a></td>
		</tr>
	</s:iterator>
	</table>
</body>
